package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TLangLibraryMapper;
import com.ruoyi.system.domain.TLangLibrary;
import com.ruoyi.system.service.ITLangLibraryService;

/**
 * 语言记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-19
 */
@Service
public class TLangLibraryServiceImpl implements ITLangLibraryService 
{
    @Autowired
    private TLangLibraryMapper tLangLibraryMapper;

    /**
     * 查询语言记录
     * 
     * @param id 语言记录主键
     * @return 语言记录
     */
    @Override
    public TLangLibrary selectTLangLibraryById(Long id)
    {
        return tLangLibraryMapper.selectTLangLibraryById(id);
    }

    /**
     * 查询语言记录列表
     * 
     * @param tLangLibrary 语言记录
     * @return 语言记录
     */
    @Override
    public List<TLangLibrary> selectTLangLibraryList(TLangLibrary tLangLibrary)
    {
        return tLangLibraryMapper.selectTLangLibraryList(tLangLibrary);
    }

    /**
     * 新增语言记录
     * 
     * @param tLangLibrary 语言记录
     * @return 结果
     */
    @Override
    public int insertTLangLibrary(TLangLibrary tLangLibrary)
    {
        return tLangLibraryMapper.insertTLangLibrary(tLangLibrary);
    }

    /**
     * 修改语言记录
     * 
     * @param tLangLibrary 语言记录
     * @return 结果
     */
    @Override
    public int updateTLangLibrary(TLangLibrary tLangLibrary)
    {
        return tLangLibraryMapper.updateTLangLibrary(tLangLibrary);
    }

    /**
     * 批量删除语言记录
     * 
     * @param ids 需要删除的语言记录主键
     * @return 结果
     */
    @Override
    public int deleteTLangLibraryByIds(Long[] ids)
    {
        return tLangLibraryMapper.deleteTLangLibraryByIds(ids);
    }

    /**
     * 删除语言记录信息
     * 
     * @param id 语言记录主键
     * @return 结果
     */
    @Override
    public int deleteTLangLibraryById(Long id)
    {
        return tLangLibraryMapper.deleteTLangLibraryById(id);
    }
}
